module Spoule
  module Json
    def _format_json_kvp(key, value, *opts)
      %Q[#{key.to_json(opts)}: #{value.to_json(opts)}]
    end

    def _format_json_prefix(name, *opts)
      %Q[#{name.to_json}: {]
    end

    def _format_json_suffix
      "}"
    end

    def _format_json_array(name, array, *opts)
      %Q[#{name.to_json(opts)}: #{array.to_json(opts)}]
    end
  end # module Json
end # module Spoule
